#ifndef __GAMELAYERCONTROLLER_H__
#define __GAMELAYERCONTROLLER_H__

#include "cocos2d.h"
#include "BaseSprite.h"
#include "GameEffect.h"
USING_NS_CC;
class GameLayerController:public cocos2d::CCLayer
{
private:
	void UpdateEnumy(float dt);
	void EndMove(CCNode* node);
	void HurtHero();
	int heroHp;
	int gameHorzionHeight;
public:
	GameLayerController(void);
	~GameLayerController(void);
	virtual void update(float dt);
	virtual void onEnter();
	virtual void onExit();
	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
	virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
	CREATE_FUNC(GameLayerController);
	void InitAttackMenu();
	void OntAttackMenuClick(CCObject * obj);
	void OntLeftMenuClick(CCObject * obj);
	void OntRightMenuClick(CCObject * obj);
	static CCArray * enumyArry;
	static BaseSprite * hero;
	GameEffect * gameEffct;
};

#endif

